{include file="common/head"}
<script>
    document.title = "搜索文章 | {:config('system.base.title')} "
</script>
<link rel="stylesheet" href="__css__/index/category/index.css">
<link rel="stylesheet" href="__css__/index/category/detail.css">
<link rel="stylesheet" href="__css__/index/account/index.css">
<style>
    .navbar{
        background-color: #fff;
        padding: 10px;
        border-radius: 5px;
    }
</style>
<div class="layout clearfix">
    <span class="layui-breadcrumb">
        <a href="{:url('/index/index/index')}">首页</a>
        <a><cite>搜索</cite></a>
    </span>
    <h2 class="s-text">搜索内容【 {$key} 】</h2>
    <div class="navbar">
        <ul class="article-list">
    <p class="layui-font-purple layui-font-12">数量：{$list.totalNum} | 今日发布：{$list.todayNum}</p>
            
            {if count($list) == 0}
            <p class="no-data">什么也没有搜到~</p>
            {/if}
            {volist name="list.list" id="item"}
            <li>
                    
                    <div class="art-box">
                        <p class="t-title layui-font-black layui-font-16">
                            {$item.is_top == 1 ? '<span class="span is_top">置顶</span>' : ''}
                            {$item.is_hot == 1 ? '<span class="span is_hot">加精</span>' : ''}
                            {$item.type == 3 ? '<span class="span is_ques">提问</span>' : ''}
                            <a href="{:url('index/article/index' , ['art_id' => $item.id])}">{$item.title} </a>
                        </p>
                          <div class="art-info">
                            <p>
                                <span class="author layui-font-blue layui-font-15">{$item.profile.username}</span>
                                <span class="layui-font-gray layui-font-12">{$item.create_time}</span>
                            </p>
                            <p>
                                <i class="layui-icon-eye layui-icon layui-font-12">&nbsp;{$item.heat}</i>
                                <i class="layui-icon-dialogue layui-icon layui-font-12">&nbsp;{$item.commentCount}</i>
                                <i class="layui-icon-heart layui-icon layui-font-12">&nbsp;{$item.collectCount}</i>
                            </p>
                        </div>
                    </div>
            </li>
            {/volist}
        </ul>
        <div class="paginate">
            {$page|raw}
        </div>
    </div>
</div>
{include file="common/bottom"}